package com.sh.data.engine.repository.dao.integration.api.record.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.sh.data.engine.repository.dao.base.EngineBaseModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * api采集运行记录
 */
@Data
//@Builder(toBuilder = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_api_running_record")
public class ApiRunningRecordEntity
        extends EngineBaseModel<ApiRunningRecordEntity> {
//    @TableId(value = "id", type = IdType.AUTO)
//    protected Long id;
//
//    @TableField(value = "create_time", fill = FieldFill.INSERT)
//    protected Date createTime;
//
//    @TableField(value = "creator_id", fill = FieldFill.INSERT)
//    protected String creatorId;
//
//    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
//    protected Date updateTime;
//
//    @TableField(value = "updater_id", fill = FieldFill.INSERT_UPDATE)
//    protected String updaterId;

    // api采集id
    private Long apiId;
    // api类型
    private String apiType;
    // 执行方式
    private Integer executeType;

    // 任务状态
    private Integer taskStatus;
    private Date startTime;
    private Date endTime;
    private Long jobLogId; // 执行日志id
    private Integer isAlarmed;
    private String ipAddress;
    private Integer ignored;
    private Long projectId;
}
